package com.ktjiaoyu.yuanzihuan.service;

import com.ktjiaoyu.yuanzihuan.bean.IndexImg;
import com.ktjiaoyu.yuanzihuan.repository.IndexImgRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("indexImgService")
public class IndexImgServiceImp implements IndexImgService {

    @Resource
    private IndexImgRepository indexImgRepository;


    @Override
    public List<IndexImg> findByEnabledOrderByImgOrderDescBiz(int enabled,String imgType) {
        return indexImgRepository.findByEnabledAndImgTypeOrderByImgOrderAsc(enabled,imgType);
    }
}
